﻿/* PN264 - A Parallel H.264 Encoding Utility
 * Copyright © 2009 PN264 Development Team
 *
 * This software is released under the terms and conditions of the MIT License,
 * a copy of which can be found in the License.txt file.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PN264.Net
{
    public enum MessageCommand
    {
        #region General Commands
        Ping = 0x00,

        /// <summary>
        /// Informs the peer that the last message was processed successfully, or the identified message if nonzero.
        /// </summary>
        Okay = 0x01,

        #endregion

        #region Client-to-Server Commands

        Bored = 0x21,
        Relay = 0x22,

        #endregion

        #region Server-to-Client Commands

        /// <summary>
        /// Tells the client to stop processing it's current task.
        /// </summary>
        Stop = 0x40,

        #endregion

        #region Broadcast Commands

        /// <summary>
        /// Announces a peer's presence.
        /// </summary>
        Announce = 0x60,

        /// <summary>
        /// Requests that all peers who receive message send an Announce message.
        /// </summary>
        HeadCount = 0x61,

        #endregion
    }
}
